package cn.xerllent.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("msg_user")
public class MsgUser implements Serializable {
	
    private static final long serialVersionUID = 1L;

    /**
	 * 自增长编号
	 * */
    @TableId
    private Long id;
	
	/**
	 * 消息id
	 * */
	@TableField(value="msgId")
	private Long msgId;

	/**
	 * 消息类型
	 * 0发送,1接收
	 * */
    private Integer phase;//

	/**
	 * 接收人id
	 * */
	@TableField(value="uId")
	private Long uId;

	/**
	 * 接收人名称
	 * */
    private String name;

	/**
	 * 接收人时间
	 * */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime recvtime;

	/**
	 * 是否阅读
	 * */
	private Boolean readed;

	/**
	 * 是否删除
	 * */
	private Boolean del;
    
    
    
}
